<template>
  <div class="app-container">
    <el-row>
      <el-col :span="24">
        <h2>添加项目</h2>
        <el-form ref="form" :model="form" label-width="120px">
          <el-form-item label="名称">
            <el-input v-model="form.name" />
          </el-form-item>
          <el-form-item label="负责人">
            <el-input v-model="form.manager" />
          </el-form-item>
          <el-form-item label="成员">
            <el-input v-model="form.members" />
          </el-form-item>
          <el-form-item label="产品">
            <el-input v-model="form.products" />
          </el-form-item>
          <el-form-item label="备注">
            <el-input
              type="textarea"
              :rows="2"
              placeholder="请输入内容"
              v-model="form.remark">
            </el-input>
          </el-form-item>
          <el-form-item>
            <el-button type="primary" @click="onSubmit">添加</el-button>
            <el-button>取消</el-button>
          </el-form-item>
        </el-form>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  data() {
    return {
      form: {
        name: '',
        manager: '',
        members: '',
        products: '',
        remark: ''
      }
    }
  },
  methods: {
    onSubmit() {
      this.$message('submit!')
    },
    onCancel() {
      this.$message({
        message: 'cancel!',
        type: 'warning'
      })
    }
  }
}
</script>

<style scoped>
.line{
  text-align: center;
}
h2{
  text-align: center;
}
</style>

